{% extends "../base.html" %}

{% block header %}
<link href="/css/main.css" rel="stylesheet" type="text/css" />
{% endblock header %}

{% block body %}

  <div>
  <h1>Welcome {{username}}, <a href="/logout">退出</a></h1>
  </div>

  <div>
	  {% ifnotequal prevpage -1 %}
	  <a href="/mht/list/{{prevpage}}">上一页</a>
	  {% endifnotequal %}
	  {% ifnotequal nextpage 0 %}
	  <a href="/mht/list/{{nextpage}}">下一页</a>
	  {% endifnotequal %}
  </div>
  
  <div class="list">
  <form action="/mht/list" method="post">
  <ol>
  {% for mht in mhts %}
  <li><a target="_blank" href="/pic/list/{{mht.mhtid}}">{{mht.name}}</a>
  	  <input type="checkbox" name="mhtid" value={{mht.mhtid}}>
  </li>
  {% endfor %}
  </ol>  
  <input type="submit" value="delete">
  </form>
  </div>
  
  <div>
	  {% ifnotequal prevpage -1 %}
	  <a href="/mht/list/{{prevpage}}">上一页</a>
	  {% endifnotequal %}
	  {% ifnotequal nextpage 0 %}
	  <a href="/mht/list/{{nextpage}}">下一页</a>
	  {% endifnotequal %}
  </div>

  {% endblock body %}